from flask_migrate import Migrate
from flask_cors import CORS

from flask_shop import create_app,db

app = create_app('develop')
CORS(app, resources={r"/*": {"origins": "http://localhost:8080"}}, supports_credentials=True)
#创建同步数据库对象
Migrate(app,db)

if __name__ == '__main__':
    # app.run(use_reloader=False)  #调试模式
    app.run()